using System;
using XiaoyuI.CrystalQuartz.Domain.TriggerTypes;

namespace XiaoyuI.CrystalQuartz.Domain.Activities
{
    public class TriggerData : Activity
    {
        public TriggerData(string uniqueTriggerKey, string groupName, string name, 
            ActivityStatus status, DateTime? startDate, DateTime? endDate, DateTime? nextFireDate, DateTime? previousFireDate, 
            TriggerType triggerType) : base(name, status)
        {
            UniqueTriggerKey = uniqueTriggerKey;
            GroupName = groupName;
            StartDate = startDate;
            EndDate = endDate;
            NextFireDate = nextFireDate;
            PreviousFireDate = previousFireDate;
            TriggerType = triggerType;
        }

        public string UniqueTriggerKey { get; }

        public string GroupName { get; }

        public DateTime? StartDate { get; }

        public DateTime? EndDate { get; }

        public DateTime? NextFireDate { get; }

        public DateTime? PreviousFireDate { get; }

        public TriggerType TriggerType { get; }
    }
}